package com.red.star.macalline.data.entity;

import lombok.Data;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Set;

/**
 * @Author: Yenan
 * @Description:
 * @Date: Created in 13:46 2018/1/31
 */
@Data
@Table(name = "t_media")
public class Media extends BaseEntity {

    private Integer size;

    private String url;

    /**
     * 1:图片,2:视频,3:音频
     */
    private Integer type;

    private String name;

    @Transient
    private Set<Tag> tags;
}
